<!DOCTYPE html>
<html lang="en">
<head>
<title>Contacts</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="../../../css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="../../../css/style.css" type="text/css" media="all">
<script type="text/javascript" src="../../../js/jquery-1.6.js" ></script>
<script type="text/javascript" src="../../../js/cufon-yui.js"></script>
<script type="text/javascript" src="../../../js/cufon-replace.js"></script>
<script type="text/javascript" src="../../../js/Swis721_Cn_BT_400.font.js"></script>
<script type="text/javascript" src="../../../js/Swis721_Cn_BT_700.font.js"></script>
<script type="text/javascript" src="../../../js/tabs.js"></script>
<!--[if lt IE 9]>
  	<script type="text/javascript" src="js/html5.js"></script>
	<style type="text/css">
		.bg{ behavior: url(js/PIE.htc); }
	</style>
<![endif]-->
<!--[if lt IE 7]>
		<div style=' clear: both; text-align:center; position: relative;'>
			<a href="http://www.microsoft.com/windows/internet-explorer/default.aspx?ocid=ie6_countdown_bannercode"><img src="http://www.theie6countdown.com/images/upgrade.jpg" border="0"  alt="" /></a>
		</div>
<![endif]-->
</head>
<body id="page4">
	<?php
	   session_start();
	   if(isset($_SESSION['CODIGO_USUARIO'])){
	    $ID_User = $_SESSION['CODIGO_USUARIO'];   
		    ?> 
	

	<div class="body1">
	<div class="body2">
	<div class="body5">
		<div class="main">
<!-- header -->
                <?php
$link = mysql_connect("localhost","root","")or 
  die("Problemas en la conexion");
mysql_select_db("personalizatuweb", $link);

$result = mysql_query("SELECT * FROM usuarios where ID_USUARIO='".$ID_User."'", $link) or
  die("Problemas en la consulta SELECT:".mysql_error());
  
while($row = mysql_fetch_array($result) ){
	$NombreUser= $row['NOMBREUSUARIO'];
	$EmailUser= $row['EMAIL'];
    $FechaIncorporacionUser=$row['FECHAINCORPORACION'];
}
mysql_close($link);
 ?>
 
 
			<header>
				<div class="wrapper">
				<nav>
            
				<?php	 
 echo "<p style='float:left;'><b><u>DATOS DE USUARIO</u></b><br>"; 
 echo"NOMBRE: ".$NombreUser."<br>";
 echo"EMAIL: ".$EmailUser."<br>";
 echo"FECHA REGISTRO: ".$FechaIncorporacionUser."";

 ?>
					
					<ul id="menu">
						<li id="nav3"><a href="../../index.php">Mis<span>Sitios</span></a></li>
						<li id="nav2" class="active"><a>Crear<span>Sitio Web</span></a></li>
						<li id="nav4"><a>Mi<span>Cuenta</span></a></li>
				        <li id="nav1"><a href="../../logout.php">Cerrar<span>Sesion</span></a></li>
					</ul>
				</nav>
				</div>
			</header>
		<!-- header end-->
		</div>
	</div>
	</div>
	</div>
	<div class="body3">
		<div class="main">
<!-- content -->
			<article id="content">
				<div class="wrapper">
					<section class="col1">
                   	 <h3 id="Informacion"><span class="dropcap">1</span>Informacion del Sitio Web</h3>
						
                        <form id="ContactForm" method="post" action="InsertarSitioWeb.php">
						<div>
							<div  class="wrapper">
								<span>Nombre:</span>
								<input type="text" class="input" name="txtNombre">
							</div>
														
							<div  class="textarea_box">
								<span>Descripcion</span>
								<textarea name="txtDescripcion" cols="15" rows="50"></textarea>
							</div>
							<a href="#" id="BTNContinuar"  onClick="ValidarDatos()">Continuar</a>
							<a href="#" onClick="document.getElementById('ContactForm').reset()">Limpiar</a>
						</div>
					</form>
                    <BR>  <BR>  <BR>  <BR> 
					</section>
				</div>

			</article>
		</div>
	</div>
	<div class="body3">
		<div class="main">
			<article id="content2">
				<div class="wrapper"></div>
			</article>
<!-- content end -->
		</div>
	</div>
		 <?php	   }else
		   
		   {
		   header ("Location: ../../../index.html");
		   	}
       ?> 
		
<script type="text/javascript"> Cufon.now(); 

function ValidarDatos(){
	var form = $("#ContactForm");
	form.submit();
	
	}

</script>

</body>
</html>